import{User} from '../models/User';
import{Token} from '../models/Token';
import{Project} from '../models/Project';
import{BaseService} from './BaseService';
import{GroupsDao} from '../dao/GroupsDao';
import{ Group} from '../models/Group';
export class GroupsService extends BaseService
{
  groupsDao:GroupsDao;
  constructor()
  {
    super();
    this.groupsDao = new GroupsDao();
  }

  addGroup(group:Group,callback:Function)
  {
    this.groupsDao.add(group,callback);
  }

  updateGroup(group:Group,callback:Function)
  {
    this.groupsDao.update(group,callback);
  }

  getGroup(groupId:string,callback:Function)
  {
    this.groupsDao.get(groupId,callback);
  }

  getGroups(projectId:string,callback:Function)
  {
    this.groupsDao.gets(projectId,callback);
  }

  deleteGroup(groupId:string,callback:Function)
  {
    this.groupsDao.delete(groupId,callback);
  }
}
